package com.wys.mall.product.feign;

import com.wys.common.to.SkuReductionTo;
import com.wys.common.to.SpuBoundTo;
import com.wys.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 调用mall-coupon的方法
 * @Package com.wys.mall.product.feign
 * @Author charlin
 * @Version: v1.0
 * @Date 2021-06-2210:16
 * @Copyright: 2021 www.wyscha.com Inc. All rights reserved.
 */
@FeignClient("mall-coupon")
public interface CouponFeignService {

    /**
     * 保存积分
     * @param spuBoundTo
     * @return
     */
    @PostMapping("coupon/spubounds/save")
    R saveSpuBounds(@RequestBody SpuBoundTo spuBoundTo);

    /**
     * 保存打折信息
     * @param skuReductionTo
     * @return
     */
    @PostMapping("coupon/skufullreduction/saveInfo")
    R saveSkuReduction(@RequestBody SkuReductionTo skuReductionTo);
}
